package com.situ.javase.week2.day1;

public class Changfangxing{
private  int length;
private  int high;



public Changfangxing () {
	
		
	}
public void zhouchang1(){
	int zhouchang1 = (length + high) * 2;
	System.out.println(zhouchang1);
	}
public void mianji1() {
	int mianji1 = length * high;
	System.out.println(mianji1);
}

public Changfangxing(int high) {
	this.high = high;
	this.length = high;
}
public void zhouchang2(){
	int zhouchang2 = (length + high) * 2;
	System.out.println(zhouchang2);
	}
public void mianji2() {
	int mianji2 = length * high;
	System.out.println(mianji2);
}

public Changfangxing(int high, int length) {
	this.high = high;
	this.length = length;
}
public void zhouchang3(){
	int zhouchang3 = (length + high) * 2;
	System.out.println(zhouchang3);
	}
public void mianji3() {
	int mianji3 = length * high;
	System.out.println(mianji3);
}
public  static void main(String[] args) {
	Changfangxing changfangxing  = new Changfangxing();
	changfangxing.mianji1();
	changfangxing.mianji2();
	
	changfangxing.mianji3();
	changfangxing.zhouchang1();
	changfangxing.zhouchang2();
	changfangxing.zhouchang3();
	
}
}
